package com.ruoyi.ncpsy.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 作物与肥料记录对象 ncpsy_crop_fertilizer
 * 
 * @author ruoyi
 * @date 2025-08-30
 */
public class NcpsyCropFertilizer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long fertRecordId;

    /** 肥料ID */
    @Excel(name = "肥料ID")
    private Long fertilizerId;

    /** 作物事件ID */
    @Excel(name = "作物事件ID")
    private Long cropEventId;

    /** 施肥日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "施肥日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date fertilizationDate;

    /** 施肥量 */
    private BigDecimal fertilizationAmount;

    /** 施肥图片 */
    private String fertImg;

    /** 施肥方法 */
    private String fertilizationMethod;

    /** 施肥量单位 */
    private String amountUnit;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 交易哈希 */
    private String hash;

    /** 用户ID */
    private int userId;

    public void setFertRecordId(Long fertRecordId) 
    {
        this.fertRecordId = fertRecordId;
    }

    public Long getFertRecordId() 
    {
        return fertRecordId;
    }

    public void setFertilizerId(Long fertilizerId) 
    {
        this.fertilizerId = fertilizerId;
    }

    public Long getFertilizerId() 
    {
        return fertilizerId;
    }

    public void setCropEventId(Long cropEventId) 
    {
        this.cropEventId = cropEventId;
    }

    public Long getCropEventId() 
    {
        return cropEventId;
    }

    public void setFertilizationDate(Date fertilizationDate) 
    {
        this.fertilizationDate = fertilizationDate;
    }

    public Date getFertilizationDate() 
    {
        return fertilizationDate;
    }

    public void setFertilizationAmount(BigDecimal fertilizationAmount) 
    {
        this.fertilizationAmount = fertilizationAmount;
    }

    public BigDecimal getFertilizationAmount() 
    {
        return fertilizationAmount;
    }

    public void setFertImg(String fertImg) 
    {
        this.fertImg = fertImg;
    }

    public String getFertImg() 
    {
        return fertImg;
    }

    public void setFertilizationMethod(String fertilizationMethod) 
    {
        this.fertilizationMethod = fertilizationMethod;
    }

    public String getFertilizationMethod() 
    {
        return fertilizationMethod;
    }

    public void setAmountUnit(String amountUnit) 
    {
        this.amountUnit = amountUnit;
    }

    public String getAmountUnit() 
    {
        return amountUnit;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setHash(String hash) 
    {
        this.hash = hash;
    }

    public String getHash() 
    {
        return hash;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "NcpsyCropFertilizer{" +
                "fertRecordId=" + fertRecordId +
                ", fertilizerId=" + fertilizerId +
                ", cropEventId=" + cropEventId +
                ", fertilizationDate=" + fertilizationDate +
                ", fertilizationAmount=" + fertilizationAmount +
                ", fertImg='" + fertImg + '\'' +
                ", fertilizationMethod='" + fertilizationMethod + '\'' +
                ", amountUnit='" + amountUnit + '\'' +
                ", status='" + status + '\'' +
                ", hash='" + hash + '\'' +
                ", userId=" + userId +
                '}';
    }
}
